<?php if (!defined('THINK_PATH')) exit();?><!-- 
  
  作者：怼烎
  QQ：1395961821
  时间：2017.10.10

 -->

<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>微信商城</title>

  <!-- 手机状态下禁止缩放 -->
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="stylesheet" href="/Public/Moble_home/css/bootstrap.min.css" type="text/css">
  <link rel="stylesheet" type="text/css" href="/Public/Moble_home/css/bootstrap-theme.min.css">
  <link rel="stylesheet" type="text/css" href="/Public/Moble_home/css/addAnAdd.css">

  <!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>

  <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container-fluid">
        <!-- 栅格 -->
        <div class="navbar-header row">
          <div  class="text-center col-xs-12">
            <div class="col-xs-2">
              <a onclick="window.history.back()" class="pull-left">
                <div class="glyphicon glyphicon-menu-left"></div>
              </a>
            </div>
            <div class="col-xs-8">地址管理</div>
            <div class="col-xs-2">
              <div class="pull-right">
                <a href="javascript:void(0);" id="point" class="dropdown-toggle" data-toggle="dropdown"><div class="text-center"><div class="glyphicon glyphicon-option-horizontal"></div></div></a>
                        <ul class="dropdown-menu" aria-labelledby="point">
                  <li><a href="/index.php/Home/Index/index"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;首页</a></li>
                  <li role="separator" class="divider"></li>
                  <li><a href="/index.php/Home/Cart/add_cart"><span class="glyphicon glyphicon-shopping-cart text-center"></span>&nbsp;&nbsp;购物车</a></li><li role="separator" class="divider"></li>
                  <li><a href="#"><span class="glyphicon glyphicon-share-alt"></span>&nbsp;&nbsp;分享</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        </div>
      </div><!-- /.container-fluid -->
    </nav>

    <!-- 中间表单 -->
 <form action="/index.php/Home/User/get_address/id/1" method="post" >

    <section class="row">
      
      <div class="col-xs-12">
        <div class="col-xs-4">收货人姓名</div>
        <div class="col-xs-8 input-group">
            <input type="text" class="form-control" placeholder="请输入姓名" aria-describedby="sizing-addon2"  name="consignee" value="<?php echo ($address["consignee"]); ?>" required>
        </div>
      </div>
      <div class="col-xs-12">
        <hr>
      </div>
      <div class="col-xs-12">
        <div class="col-xs-4">地区</div>
        <div class="col-xs-12"></div>
        <div class="col-xs-6">
            <select class="province_select"  name="province" id="province" onChange="get_city(this)">
                      <option value="0">请选择</option>
                        <?php if(is_array($province)): $i = 0; $__LIST__ = $province;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?><option  value="<?php echo ($p["id"]); ?>"><?php echo ($p["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>

        <div class="col-xs-6">
            <select name="city" id="city" onChange="get_area(this)" class="province_select">
               <option  value="0">请选择</option>
               <?php if(is_array($city)): $i = 0; $__LIST__ = $city;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?><option  value="<?php echo ($p["id"]); ?>"><?php echo ($p["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>

        <div class="col-xs-6">
            <select name="district" id="district" onChange="get_twon(this)" class="province_select">
                <option  value="0">请选择</option>
                <?php if(is_array($district)): $i = 0; $__LIST__ = $district;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?><option  value="<?php echo ($p["id"]); ?>"><?php echo ($p["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>    
        </div>
        
        <div class="col-xs-6">
          <select class="di-bl fl seauii" name="twon" id="twon" style="display:none;">
               <?php if(is_array($twon)): $i = 0; $__LIST__ = $twon;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?><option  value="<?php echo ($p["id"]); ?>"><?php echo ($p["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
          </select>  
        </div>
      </div>
      <div class="col-xs-12">
        <hr>
      </div>
      <div class="col-xs-12">
        <div class="col-xs-4">详细信息</div>
        <div class="col-xs-8 input-group">
            <input type="text" class="form-control" placeholder="请输入详细地址" aria-describedby="sizing-addon2"  name="address"  required>
        </div>
      </div>
      <div class="col-xs-12">
        <hr>
      </div>
      <div class="col-xs-12">
        <div class="col-xs-4">手机</div>
        <div class="col-xs-8 input-group">
            <input type="text" class="form-control" placeholder="请输入手机号" aria-describedby="sizing-addon2"  name="mobile" required>
        </div>
      </div>
      <div class="col-xs-12">
        <hr>
      </div>
      <div class="col-xs-12">
        <div class="col-xs-4">邮政编码</div>
        <div class="col-xs-8 input-group">
            <input type="number" class="form-control" placeholder="请输入邮政编码" aria-describedby="sizing-addon2"  name="postalcode" >
        </div>
      </div>
      <div class="col-xs-12">
        <hr>
      </div>

    </section>
    <button type="submit">保存并使用该地址</button>
</form>
  <script src="/Public/Moble_home/js/jquery.min.js" type="text/javascript"></script>
  <script src="/Public/Moble_home/js/bootstrap.min.js" type="text/javascript"></script>
  <script src="/Public/Moble_home/js/add_address.js" type="text/javascript"></script>
</body>
</html>